﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace tantrinh.Models
{
    public class DanhMuc
    {
        public int DanhMucID { get; set; }
        [Required(ErrorMessage = "Chưa nhập tên danh mục.")]
        [Display(Name = "Tên danh mục")]
        public string TenDanhMuc{get;set;}
        public bool TinhTrang { get; set; }

        public virtual ICollection<ChiTietDanhMuc> ChiTietDanhMuc { get; set; }
    }
}